package com.share.order.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.share.device.domain.PowerBank;
import com.share.order.mapper.PowerBankMapper;
import com.share.order.service.IPowerBankService;
import org.springframework.beans.factory.annotation.Autowired;

public class IPowerBankServiceImpl implements IPowerBankService {

    @Autowired
    private PowerBankMapper powerBankMapper;
     @Override
    public PowerBank getByPowerBankNo(String powerBankNo) {
        return powerBankMapper.selectOne(new LambdaQueryWrapper<PowerBank>().eq(PowerBank::getPowerBankNo, powerBankNo));
    }
}
